#!/usr/bin/env python
# -*- coding:utf-8 -*-
# @FileName  :AES算法解密.py
# @Time      :2024/4/12 14:39
# @Author    :Sherlock
from Crypto.Cipher import AES
from Crypto.Util.Padding import pad, unpad
import base64

key = "0123456789abcdef"
iv = "0123456789abcdef"

def decrypt_(ciphertext):
    ciphertext = base64.b64decode(ciphertext.encode())
    cipher = AES.new(key.encode(), AES.MODE_CBC, iv.encode())
    plaintext = unpad(cipher.decrypt(ciphertext), AES.block_size)
    return plaintext.decode()

ciphertext = "LEBvMzVLI4S2HiiQxHNT/FBkkq7p2YcUNXCT2tquvFE="
print(decrypt_(ciphertext))